Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
interface System.​Numerics.​IFloatingPointIeee754<​TSelf>
Assembly: System.Runtime
Implemented Interfaces
- IExponentialFunctions`1 (Inherits: IEquatable<​TSelf>IFormattableIParsable<​TSelf>ISpanFormattableISpanParsable<​TSelf>IUtf8SpanFormattableIUtf8SpanParsable<​TSelf>IAdditionOperators<​TSelf, TSelf, TSelf>IAdditiveIdentity<​TSelf, TSelf>IDecrementOperators<​TSelf>IDivisionOperators<​TSelf, TSelf, TSelf>IEqualityOperators<​TSelf, TSelf, bool>IFloatingPointConstants<​TSelf>IIncrementOperators<​TSelf>IMultiplicativeIdentity<​TSelf, TSelf>IMultiplyOperators<​TSelf, TSelf, TSelf>INumberBase<​TSelf>ISubtractionOperators<​TSelf, TSelf, TSelf>IUnaryNegationOperators<​TSelf, TSelf>IUnaryPlusOperators<​TSelf, TSelf>)
- IFloatingPoint`1 (Inherits: IComparableIComparable<​TSelf>IEquatable<​TSelf>IFormattableIParsable<​TSelf>ISpanFormattableISpanParsable<​TSelf>IAdditionOperators<​TSelf, TSelf, TSelf>IAdditiveIdentity<​TSelf, TSelf>IComparisonOperators<​TSelf, TSelf, bool>IEqualityOperators<​TSelf, TSelf, bool>IDecrementOperators<​TSelf>IDivisionOperators<​TSelf, TSelf, TSelf>IFloatingPointConstants<​TSelf>IUtf8SpanFormattableIUtf8SpanParsable<​TSelf>IIncrementOperators<​TSelf>IMultiplicativeIdentity<​TSelf, TSelf>IMultiplyOperators<​TSelf, TSelf, TSelf>INumberBase<​TSelf>ISubtractionOperators<​TSelf, TSelf, TSelf>IUnaryNegationOperators<​TSelf, TSelf>IUnaryPlusOperators<​TSelf, TSelf>IModulusOperators<​TSelf, TSelf, TSelf>INumber<​TSelf>ISignedNumber<​TSelf>)
- IHyperbolicFunctions`1 (Inherits: IEquatable<​TSelf>IFormattableIParsable<​TSelf>ISpanFormattableISpanParsable<​TSelf>IUtf8SpanFormattableIUtf8SpanParsable<​TSelf>IAdditionOperators<​TSelf, TSelf, TSelf>IAdditiveIdentity<​TSelf, TSelf>IDecrementOperators<​TSelf>IDivisionOperators<​TSelf, TSelf, TSelf>IEqualityOperators<​TSelf, TSelf, bool>IFloatingPointConstants<​TSelf>IIncrementOperators<​TSelf>IMultiplicativeIdentity<​TSelf, TSelf>IMultiplyOperators<​TSelf, TSelf, TSelf>INumberBase<​TSelf>ISubtractionOperators<​TSelf, TSelf, TSelf>IUnaryNegationOperators<​TSelf, TSelf>IUnaryPlusOperators<​TSelf, TSelf>)
- ILogarithmicFunctions`1 (Inherits: IEquatable<​TSelf>IFormattableIParsable<​TSelf>ISpanFormattableISpanParsable<​TSelf>IUtf8SpanFormattableIUtf8SpanParsable<​TSelf>IAdditionOperators<​TSelf, TSelf, TSelf>IAdditiveIdentity<​TSelf, TSelf>IDecrementOperators<​TSelf>IDivisionOperators<​TSelf, TSelf, TSelf>IEqualityOperators<​TSelf, TSelf, bool>IFloatingPointConstants<​TSelf>IIncrementOperators<​TSelf>IMultiplicativeIdentity<​TSelf, TSelf>IMultiplyOperators<​TSelf, TSelf, TSelf>INumberBase<​TSelf>ISubtractionOperators<​TSelf, TSelf, TSelf>IUnaryNegationOperators<​TSelf, TSelf>IUnaryPlusOperators<​TSelf, TSelf>)
- IPowerFunctions`1 (Inherits: INumberBase<​TSelf>IEquatable<​TSelf>IFormattableIParsable<​TSelf>ISpanFormattableISpanParsable<​TSelf>IUtf8SpanFormattableIUtf8SpanParsable<​TSelf>IAdditionOperators<​TSelf, TSelf, TSelf>IAdditiveIdentity<​TSelf, TSelf>IDecrementOperators<​TSelf>IDivisionOperators<​TSelf, TSelf, TSelf>IEqualityOperators<​TSelf, TSelf, bool>IIncrementOperators<​TSelf>IMultiplicativeIdentity<​TSelf, TSelf>IMultiplyOperators<​TSelf, TSelf, TSelf>ISubtractionOperators<​TSelf, TSelf, TSelf>IUnaryNegationOperators<​TSelf, TSelf>IUnaryPlusOperators<​TSelf, TSelf>)
- IRootFunctions`1 (Inherits: IFloatingPointConstants<​TSelf>IEquatable<​TSelf>IFormattableIParsable<​TSelf>ISpanFormattableISpanParsable<​TSelf>IUtf8SpanFormattableIUtf8SpanParsable<​TSelf>IAdditionOperators<​TSelf, TSelf, TSelf>IAdditiveIdentity<​TSelf, TSelf>IDecrementOperators<​TSelf>IDivisionOperators<​TSelf, TSelf, TSelf>IEqualityOperators<​TSelf, TSelf, bool>IIncrementOperators<​TSelf>IMultiplicativeIdentity<​TSelf, TSelf>IMultiplyOperators<​TSelf, TSelf, TSelf>INumberBase<​TSelf>ISubtractionOperators<​TSelf, TSelf, TSelf>IUnaryNegationOperators<​TSelf, TSelf>IUnaryPlusOperators<​TSelf, TSelf>)
- ITrigonometricFunctions`1 (Inherits: IFloatingPointConstants<​TSelf>IEquatable<​TSelf>IFormattableIParsable<​TSelf>ISpanFormattableISpanParsable<​TSelf>IUtf8SpanFormattableIUtf8SpanParsable<​TSelf>IAdditionOperators<​TSelf, TSelf, TSelf>IAdditiveIdentity<​TSelf, TSelf>IDecrementOperators<​TSelf>IDivisionOperators<​TSelf, TSelf, TSelf>IEqualityOperators<​TSelf, TSelf, bool>IIncrementOperators<​TSelf>IMultiplicativeIdentity<​TSelf, TSelf>IMultiplyOperators<​TSelf, TSelf, TSelf>INumberBase<​TSelf>ISubtractionOperators<​TSelf, TSelf, TSelf>IUnaryNegationOperators<​TSelf, TSelf>IUnaryPlusOperators<​TSelf, TSelf>)
Defines an IEEE 754 floating-point type.
Properties
static
TSelf
Epsilon
Gets the smallest value such that can be added to <c>0</c> that does not result in <c>0</c> .
static
TSelf
NaN
Gets a value that represents <c>NaN</c> .
static
TSelf
NegativeInfinity
Gets a value that represents negative <c>infinity</c> .
static
TSelf
NegativeZero
Gets a value that represents negative <c>zero</c> .
static
TSelf
PositiveInfinity
Gets a value that represents positive <c>infinity</c> .
Methods
static
TSelf
Atan2​(TSelf y,
TSelf x)
Computes the arc-tangent for the quotient of two values.
Returns The arc-tangent of <paramref name="y" /> divided-by <paramref name="x" /> .
y
The y-coordinate of a point.
x
The x-coordinate of a point.
static
TSelf
Atan2Pi​(TSelf y,
TSelf x)
Computes the arc-tangent for the quotient of two values and divides the result by <c>pi</c> .
Returns The arc-tangent of <paramref name="y" /> divided-by <paramref name="x" /> , divided by <c>pi</c> .
y
The y-coordinate of a point.
x
The x-coordinate of a point.
static
TSelf
BitDecrement​(TSelf x)
Returns the largest value that compares less than a specified value.
Returns The largest value that compares less than <paramref name="x" /> .
x
The value to be bitwise decremented.
static
TSelf
BitIncrement​(TSelf x)
Returns the smallest value that compares greater than a specified value.
Returns The smallest value that compares greater than <paramref name="x" /> .
x
The value to be bitwise incremented.
static
TSelf
FusedMultiplyAdd​(TSelf left,
TSelf right,
TSelf addend)
Computes the fused multiply-add of three values.
Returns The result of <paramref name="left" /> times <paramref name="right" /> plus <paramref name="addend" /> computed as one ternary operation.
left
The value that <paramref name="right" /> multiplies.
right
The value that multiplies <paramref name="left" /> .
addend
The value that is added to the product of <paramref name="left" /> and <paramref name="right" /> .
static
TSelf
Ieee754Remainder​(TSelf left,
TSelf right)
Computes the remainder of two values as specified by IEEE 754.
Returns The remainder of <paramref name="left" /> divided by <paramref name="right" /> as specified by IEEE 754.
left
The value that <paramref name="right" /> divides.
right
The value that divides <paramref name="left" /> .
static
int
ILogB​(TSelf x)
Computes the integer logarithm of a value.
Returns The integer logarithm of <paramref name="x" /> .
x
The value whose integer logarithm is to be computed.
static
TSelf
Lerp​(TSelf value1,
TSelf value2,
TSelf amount)
Performs a linear interpolation between two values based on the given weight.
Returns The interpolated value.
value1
The first value, which is intended to be the lower bound.
value2
The second value, which is intended to be the upper bound.
amount
A value, intended to be between 0 and 1, that indicates the weight of the interpolation.
static
TSelf
ReciprocalEstimate​(TSelf x)
Computes an estimate of the reciprocal of a value.
Returns An estimate of the reciprocal of <paramref name="x" /> .
x
The value whose estimate of the reciprocal is to be computed.
static
TSelf
ReciprocalSqrtEstimate​(TSelf x)
Computes an estimate of the reciprocal square root of a value.
Returns An estimate of the reciprocal square root of <paramref name="x" /> .
x
The value whose estimate of the reciprocal square root is to be computed.
static
TSelf
ScaleB​(TSelf x,
int n)
Computes the product of a value and its base-radix raised to the specified power.
Returns The product of <paramref name="x" /> and base-radix raised to the power of <paramref name="n" /> .
x
The value that base-radix raised to the power of <paramref name="n" /> multiplies.
n
The value to which base-radix is raised before multipliying <paramref name="x" /> .